Resursbank\EcomTest\Unit\Lib\Http\ControllerTest S

Total Complexity 18
Dependencies 7
Dependents 0
Total lines 290
Lines of code 155
Logical lines of code 42
Comment lines 85
Methods 18
Properties 1

Methods 18

Method Rating Maintainability Complexity Lines of code
getErrorResponseCodeFromCurlException()
S
61 1 14
testRespondWithError()
S
61 1 12
getErrorResponseCodeFromHttpException()
S
63 1 12
getErrorResponseCodeDefaultsTo400()
S
63 1 12
setUp()
S
74 1 5
getControllerWithMockedInputData()
S
64 1 10
getControllerWithoutHeaderManipulation()
S
71 1 6
testRespond()
S
63 1 10
testGetErrorMessageReturnsUnmasked()
S
67 1 9
testGetErrorMessageReturnsMasked()
S
68 1 8
testLogIsSilent()
S
73 1 5
testDefaultError()
S
67 1 9
testGetInputDataThrowsWithoutData()
S
73 1 5
testGetRequestModelThrowsWithoutJson()
S
69 1 7
testGetRequestModelThrowsWithoutObject()
S
69 1 7
testGetRequestModelThrowsWithoutModel()
S
69 1 7
testGetRequestModelRespectsDataTypes()
S
69 1 7
testGetRequestModel()
S
64 1 10